LIMB OFFSET Z
This command will return a real number Z offset of the specified limb of the 3D object.
Return Float=LIMB OFFSET Z(Object Number, Limb Number)
Object Number
Integer
The object number
Limb Number
Integer
The limb number
This command will return a real number z offset of the specified limb of the 3D object
Specifying a limb number of zero provides access to the objects own root data, and should not normally be used in this way. The position of the limb is always offset from the positional coordinates of the 3D object itself.
backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0
ObjectNumber=1
LimbNumber=1
load object "models\model.x",ObjectNumber
print "LIMBS"
print "exist:";limb exist(ObjectNumber, LimbNumber)
if limb exist(ObjectNumber, LimbNumber)=1
print "offsetx:";limb offset x(ObjectNumber, LimbNumber)
print "offsety:";limb offset y(ObjectNumber, LimbNumber)
print "offsetz:";limb offset z(ObjectNumber, LimbNumber)
endif
while mouseclick()=0
sync
endwhile
if object exist(ObjectNumber)=1 then delete object ObjectNumber
end
BASIC3D Commands Menu
Index